package com.study.uploadexcel.service.impl;

import com.study.uploadexcel.service.UploadExcelService;
import com.study.uploadexcel.utils.ExcelUtil;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URISyntaxException;
import java.net.URLEncoder;

/**
 * @author weixiaochun
 */
@Service
public class UploadExcelServiceImpl implements UploadExcelService {

    /**
     * 简单根据模板导出Excel表格
     */
    @Override
    public void uploadExcel(HttpServletResponse response) throws URISyntaxException, IOException {
        ExcelUtil excelUtil = new ExcelUtil();
        excelUtil.upLoadExcel(response);
    }
}
